function insert_SecurityTypeTable(Type)

% Database Server
host = 'localhost';

% Database Username/Password
user = 'root';
password = 'root';


% Database Name

dbName = 'securitiesdb';

% JDBC Parameters
jdbcString = sprintf('jdbc:mysql://%s/%s', host, dbName);
jdbcDriver = 'com.mysql.jdbc.Driver';
% Set this to the path to your MySQL Connector/J JAR

javaaddpath('mysql-connector-java-5.1.6-bin.jar')

% Create the database connection object
dbConn = database(dbName, user , password, jdbcDriver, jdbcString);

% Check to make sure that we successfully connected
if isconnection(dbConn)
    % Fetch the symbol, market cap, and last close for the 10 largest

    result = selectData(strcat('Select count(*) from SecurityType Where Type =', '''', Type, '''', ';'));
    if (cell2mat(result) == 0)
        insert(dbConn,'SecurityType',{'Type'}, {Type});    
        1;
    else
       -1;
    end
    % If the connection failed, print the error message
else
    0;
    disp(sprintf('Connection failed: %s', dbConn.Message));
end

% Close the connection so we don't run out of MySQL threads
close(dbConn);

end